package com.sky.controller.user;

import com.sky.result.Result;
import com.sky.service.Order.OrderService;
import com.sky.utils.WebSocketServer;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 褚金龙
 * @Date 2024/10/15 19:57
 */
@RestController
@CrossOrigin("*")
@RequestMapping("/user")
@Slf4j
@Api(tags = "用户催单")
public class ReminderController {
    @Autowired
    private WebSocketServer webSocketServer;
    @Autowired
    private OrderService orderService;
    @GetMapping("/order/reminder/{id}")
    public Result reminder(@PathVariable Long id){
      log.info("id{}",id);
       orderService.reminder(id);
       return Result.success();
    }
}
